package com.yuantu.judiciary.exception.enums;

import com.yuantu.judiciary.common.CodeEnum;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 组织模块异常码
 *
 * @author syw
 * @since 2023-08-11
 **/
@Getter
@RequiredArgsConstructor
public enum OrganizationExceptionEnum implements CodeEnum {
    /**
     * 组织相关
     */
    ORGANIZATION_NOT_EXIST(43001, "绑定组织不存在"),
    ORGANIZATION_EXIST(43002, "组织已存在"),
    COMPLETE_ORGANIZATION_INFO(43003, "请完善并认证账户信息"),
    ORGANIZATION_SOURCE_NOT_EXIST(43004, "企业来源不存在"),
    ORGANIZATION_SOURCE_NOT_DELETED(43005, "已有企业绑定此企业来源，不可删除"),

    ORGANIZATION_DIVIDE_USE_INFO_EMPTY(43006, "导入企业分配使用次数信息为空"),

    ORGANIZATION_NAME_NOT_EXIST(43007, "企业名称不能为空"),

    ORGANIZATION_NAME_EXIST(43008, "企业名称已存在");

    private final int code;
    private final String message;
}
